﻿@model IEnumerable<Guline.Web.CentralModels.Object.Contact>
@{
    ViewBag.Title = @Guline.Web.CentralLanguages.Main.lblContact ;
    Layout = "~/Views/Shared/_GLSettingLayout.cshtml";
}
<div class="">
    <span class="s_title_body_right" style="float:left;">@ViewBag.Title</span>
    <div class="">@Html.ActionLink(@Guline.Web.CentralLanguages.Main.lblCreate, "CreateContact", "Contact", null, new { @class = "btn_add" })</div>
</div>
<div class="clr"></div>

<div class="s_content_body_right">
    <table id="example" class="display" cellspacing="0" width="100%">
        <thead>
            <tr>
                <th>
                    <p>@Guline.Web.CentralLanguages.Main.lblPhoneNumber</p>
                </th>
                <th>
                    <p>@Guline.Web.CentralLanguages.Main.lblContactName</p>
                </th>
                <th>
                    <p>@Guline.Web.CentralLanguages.Main.lblAddress</p>
                </th>
                <th>
                    <p>@Guline.Web.CentralLanguages.Main.lblAddedFrom</p>
                </th>

                <th>
                </th>
            </tr>
        </thead>
        <tbody>

            @foreach (var m in Model)
            {
                <tr>
                    <td class="td_center">
                        <div class="break_word">
                            @m.PhoneNumber
                        </div>
                    </td>
                    <td class="td_center">
                        <div class="break_word">
                            @m.ContactName
                        </div>
                    </td>
                    <td class="td_center">
                        <div class="break_word">
                            @m.Address
                        </div>
                    </td>
                    <td>
                        <div class="break_word">
                            @m.AddedFrom
                        </div>
                    </td>


                    <td class="td_center">

                        @Html.ActionLink(@Guline.Web.CentralLanguages.Main.lblEdit, "EidtContact", "Contact", new { ID = m.ID }, new { @class = "edit_text" })
                        <div class="clear-fix"></div>
                        <a href="@Url.Action("DeleteContact", "Contact", new { ID = m.ID })" onclick="return confirm('@Guline.Web.CentralLanguages.Main.lblConfirm @ViewBag.Title?\n @Guline.Web.CentralLanguages.Main.lblID :@m.ID\n @Guline.Web.CentralLanguages.Main.lblContactName: @m.ContactName\n @Guline.Web.CentralLanguages.Main.lblPhoneNumber: @m.PhoneNumber')" class="delete_text">@Guline.Web.CentralLanguages.Main.lblDelete</a>
                    </td>

                </tr>
            }
        <tbody>
    </table>
</div>
